package org.eclipse.ea.requisit.manager.utils;

import java.util.Comparator;

import org.eclipse.ea.requisit.manager.parser.visitor.util.NamedLineClass;

public class DeclarationsComparator implements Comparator<NamedLineClass> {

	@Override
	public int compare(NamedLineClass token1, NamedLineClass token2) {
		
		if(token1.getLineDeclaration() < token2.getLineDeclaration()){
			return 1;
		}
		
		if(token1.getLineDeclaration() > token2.getLineDeclaration()){
			return -1;
		}
		
		return 0;
	}

}
